package cn.lg.soar.mvc.model;

import cn.lg.soar.mvc.enums.PathFilterModeEnum;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Lazy;

import java.util.Set;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Lazy
@Getter
@Setter
@ConfigurationProperties(value = "lg.mvc.path-filter")
public class PathFilterProperties {

    /**
     * 过滤路径
     */
    private Set<String> paths;

    /**
     * 过滤模式，默认黑名单
     */
    private PathFilterModeEnum mode = PathFilterModeEnum.blacklist;

    /**
     * 提示信息
     */
    private String message = "接口拒绝访问";

}
